function setUp(){
	
	PicBoard.getTranslations(['lang_345_deleteAlbum', 'lang_322_donateConfirm', 'lang_51_yes', 'lang_52_no'], function(){});
			
	$('#controlArea').css({
		'margin-top': '27px',
		'height': $('#UserResultArea').height() 
	});

	// Bind buttons
	
	$('#saveEdits').bind('click', function(){
		// Clicking the save button should send the gID, group name and description to the server and wait for a response.
		$.post(PicBoard.baseURL + "rsrc.php?req=updateAlbum", { isID: $('input#isID').val(), name: $('input#groupName').val(), description: $('textarea#groupDescription').val() }, function(data){
			if(data.statusCode == 200){
				alert(data.message);
			} else {
				alert(data.message);
			}
		}, 'json');			
		
	});
	
	$('#deleteBook').bind('click', function(){
		check = confirm(PicBoard.languageMap.lang_345_deleteAlbum);
	
		if(check){	
			$.post(PicBoard.baseURL + "rsrc.php?req=deleteAlbum", { id: $('input#isID').val() }, function(data){
				if(data.statusCode == 200){
					window.location = "home";
				} else {
					alert(data.message);
				}
			}, 'json');	
		}
	});
	
	$('#groupSelector').bind('change', function(){
		window.location = "managealbum?id=" + $(this).val();
	});
	
}

PicBoard.addLoadEvent( "setUp()" );